Ansible Quick Start Guide by Mohamed Alibi

Ansible Quick Start Guide by Mohamed Alibi

Author:Mohamed Alibi
Language: eng
Format: epub
Tags: COM088000 - COMPUTERS / System Administration / General, COM088010 - COMPUTERS / System Administration / Linux and UNIX Administration, COM011000 - COMPUTERS / Systems Architecture / General
Publisher: Packt Publishing
Published: 2018-09-28T08:58:56+00:00


Firewall UFW management module

This is an Ansible management module for the Linux firewall UFW. It basically manages ports, protocols, and IPS firewall permissions. An example playbook to enable a port on a specific protocol can be written as follows:

- name: add port 5000 for iperf testing on all hosts

ufw:

rule: allow

port: 5000

proto: tcp

This module requires ufw , as the command-line tool, to be installed on the remote hosts.

HAProxy control module

This is a module that manages HAProxy servers, commanding them to enable, disable, drain, and set weights for backend servers using socket commands. An example of a command to disable some HAProxy servers is as follows:

- name: disable a haproxy backend host

haproxy:

state: disabled

host: '{{ inventory_hostname }}'

socket: /usr/loca/haproxy/haproxy.sock

backend: www

wait: yes



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.